namespace BusinessRules
{
    public class EntityWithBase : EntityBase<EntityWithBase>
    {
        public EntityComponent Component { get; set; }
        public string Text { get; set; }
        public int Price { get; set; }

        public int Count { get; set; }

        //[Email]
        public int Total { get; set; }

        static EntityWithBase()
        {
            // Rule per type
            //RulesExtension<EntityWithoutBase>.AddStaticRule(e => e.Text.Length > 0);
            // .WithSeverity(BrokenRuleSeverity.Warning);

           // RulesExtension.AddStaticRule<EntityWithoutBase>(e => e.Count > 0);
        }
    }
}